module.exports = {
  objForEach: function (obj, fn) {
    for (let key in obj) {
      if (Object.prototype.hasOwnProperty.call(obj, key)) {
        let result = fn(key, obj[key]);
        if (result === false) {
          break;
        }
      }
    }
  },
};


